package cn.pfz.mapper;


import cn.pfz.domain.Employee;
import cn.pfz.domain.Permission;
import cn.pfz.domain.Role;
import cn.pfz.query.QueryObject;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    List<Role>selectRusult(QueryObject qo);

    List<Role> selectByEmployee(Long id);

    List<Permission> selectByRole(Long id);

    List<String> selectRoleByEmployeeId(Long id);
}